package lab01;

public class Test05 {
    public static void main(String[] args) {
        int sum=0;//for语句
        for (int i=0;i<=100;i++)
            sum=sum+i;
        System.out.println(sum);

        int sumj =0,m=0;//while语句
        while (m<=100)
            sumj=sumj+m;
        System.out.println(sumj);

        int sumn=0,y=0;//do while语句
        do {
            sumn=sumn+y;
            sumn++;
        }
        while (y<=100);
        System.out.println(sumn);

    }
}
